-- GENERATED SPELL FOR [Monstrous Wight] --


function spell0_29123(pUnit, Event) --@Smash,n/a--
pUnit:FullCastSpellOnTarget(51334,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29123', 629, 1)
end

function Sorts_29123(pUnit, Event)
local choix_sorts_29123 = math.random(0, 0)
if choix_sorts_29123 == 0 then
pUnit:RegisterEvent('spell0_29123', 1, 1)
end
end

function mob29123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29123', math.random(1500, 3000), 1)
end

function mob29123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29123, 1, 'mob29123_Action')
RegisterUnitEvent(29123, 2, 'mob29123_Leave')
RegisterUnitEvent(29123, 3, 'mob29123_Kill')
RegisterUnitEvent(29123, 4, 'mob29123_Die')
